package com.springboot.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author gali
 * @date 2022/6/20 14:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    private Long id;

    private String username;

//    private Integer age;
//
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    private Date birth;
    private String password;

    private String role;

}
